<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>后台管理页面</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/themes/default/easyui.css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/themes/icon.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript">
	var url;
	function openTab(text,url,iconCls){
		if($("#tabs").tabs("exists",text)){
			$("#tabs").tabs("select",text);
		}else{
			var content="<iframe frameborder=0 scrolling='auto' style='width:100%;height:100%' src='${pageContext.request.contextPath}/admin/"+url+"'></iframe>";
			$("#tabs").tabs("add",{
				title:text,
				iconCls:iconCls,
				closable:true,
				content:content
			});
		}
	}
	
	/**刷新系统缓存*/
	function refreshSystem(){
		$.post("${pageContext.request.contextPath}/admin/system/refreshSystem.do",{},function(result){
			if(result.success){
				$.messager.alert("系统提示","已成功刷新系统缓存！");
			}else{
				$.messager.alert("系统提示","刷新系统缓存失败！");
			}
		},"json");
	}
	
	function openTest(){	
		$("#in1").css("display","block");
	}
	
</script>
</head>
<body class="easyui-layout">
<div region="north" style="height: 60px;background-color: #E0ECFF;overflow: hidden;">
	<table style="padding: 5px" width="100%">
		<tr>
			<td style="padding-top: 16px" valign="middle" align="left" width="20%">
				<font size="3">&nbsp;&nbsp;<strong>个人博客系统</strong></font>
			</td>
			<td style="padding-top: 16px" valign="middle" align="right" width="65%">
				<font size="3">&nbsp;&nbsp;欢迎，<strong>未完待续...</strong></font>
				
			</td>
		</tr>
	</table>
</div>
<div region="center">
	<div class="easyui-tabs" fit="true" border="false" id="tabs">
		<div title="首页" data-options="iconCls:'icon-home'">
			<div align="center" style="padding-top: 100px"><font color="red"></font></div>
		</div>
	</div>
</div>

<div region="west" style="width: 200px" title="导航菜单" split="true">
	<div class="easyui-accordion" data-options="fit:true,border:false">
		
		<div title="博客管理" data-options="iconCls:'icon-bkgl'" style="padding: 10px;">
			<a href="javascript:openTab('写博客','writeBlog.jsp','icon-writeblog')" class="easyui-linkbutton"  data-options="plain:true,iconCls:'icon-writeblog'" style="width: 150px;">写博客</a>
			<a href="javascript:openTab('博客管理','blogManage.jsp','icon-bkgl')" class="easyui-linkbutton"  data-options="plain:true,iconCls:'icon-bkgl'" style="width: 150px;">博客管理</a>	
		</div>
		
		<div title="博客类别管理" data-options="iconCls:'icon-bkgl'" style="padding: 10px;">
			<a href="javascript:openTab('博客类别管理','blogTypeManage.jsp','icon-bkgl')" class="easyui-linkbutton"  data-options="plain:true,iconCls:'icon-bkgl'" style="width: 150px;">博客类别管理</a>
		</div>
		
		<div title="评论管理" data-options="iconCls:'icon-bkgl'" style="padding: 10px;">
			<a href="javascript:openTab('评论审核','commentReview.jsp','icon-review')" class="easyui-linkbutton"  data-options="plain:true,iconCls:'icon-review'" style="width: 150px;">评论审核</a>
			<a href="javascript:openTab('评论信息管理','blogTypeManage.jsp','icon-plgl')" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-plgl'" style="width: 150px;">评论信息管理</a>
		
		</div>
		
		<div title="系统管理" data-options="iconCls:'icon-bkgl'" style="padding: 10px;">
			<a href="javascript:refreshSystem()" class="easyui-linkbutton" style="width:150px;">刷新系统缓存</a>
		</div>
	
		<div>
			
		</div>
	</div>
</div>

<div region="south" style="height:25px;padding:5px" align="center">

</div>






</body>
</html>